import apiSv from "./apiSV";
import * as express from 'express'

export default async function getMemberInfo(req: express.Request, userId: string) {
    const data = await apiSv(req.api.v4.get, {
        action: 'corp.member.get',
        sessionKey: req.t,
        companyID: req.companyId,
        userID: userId
    })
    return data.data.member
}